﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using GoDive.Contract;

namespace GoDive.App
{
    public class DestViewModel
    {
        public int PhotoCounts { get; set; }

        public tdestination Destination { get; set; }

        public tbanner Banner
        {
            get;
            set;
        }
        public List<tdestination> DestinationDiveSites { get; set; }
        public List<tdesttraffic> DestinationTraffics { get; set; }
        public PagedListContract<tdescomment> DestinationComments { get; set; }

        public PagedListContract<tarticle> DestinationArticles { get; set; }

        private IList<tdivesite> _diveSites;
        public IList<tdivesite> DiveSites
        {
            get
            {
                if (_diveSites == null)
                {
                    _diveSites = new List<tdivesite>();
                }
                return _diveSites;
            }
            set
            {
                this._diveSites = value;
            }
        }

        private List<tregion> _regions;
        public List<tregion> Regions
        {
            get
            {
                if (_regions == null)
                {
                    _regions = new List<tregion>();
                }
                return _regions;
            }
            set
            {
                this._regions = value;
            }
        }

        public List<tdestination> RecommendDes { get; set; }
    }
}